package icu.thatyear.main.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 商品分组表
 * </p>
 *
 * @author Cjy
 * @since 2024-12-06
 */
@Getter
@Setter
@TableName("tz_prod_tag")
@Schema(name = "TzProdTag", description = "商品分组表")
public class TzProdTag implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "分组标签id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "分组标题")
    @TableField("title")
    private String title;

    @Schema(description = "店铺Id")
    @TableField("shop_id")
    private Long shopId;

    @Schema(description = "状态(1为正常,0为删除)")
    @TableField("status")
    private Boolean status;

    @Schema(description = "默认类型(0:商家自定义,1:系统默认)")
    @TableField("is_default")
    private Boolean isDefault;

    @Schema(description = "商品数量")
    @TableField("prod_count")
    private Long prodCount;

    @Schema(description = "列表样式(0:一列一个,1:一列两个,2:一列三个)")
    @TableField("style")
    private Integer style;

    @Schema(description = "排序")
    @TableField("seq")
    private Integer seq;

    @Schema(description = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @Schema(description = "修改时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @Schema(description = "删除时间")
    @TableField("delete_time")
    private LocalDateTime deleteTime;
}
